import request from '@/utils/request'




// 新增公文发送
export function createOaSendDocuments(data){
	return request({
	  url: '/bpm/oa-send-documents/create',
	  method: 'post',
	  data
	})
}

// 查询公文发送
export function getOaSendDocumentsPage(data) {
  return request({
    url: '/bpm/oa-send-documents/page',
    method: 'get',
  	data
  })
}

// 查询公文发送详情
export function getOaSendDocuments(id) {
  return request({
    url: `/bpm/oa-send-documents/get?id=${id}`,
    method: 'get',
  })
}


// 导出pdf
export function exportOaSendDocumentsPdf(data){
	return request({
	  url: '/bpm/oa-send-documents/export-pdf',
	  method: 'get',
	  data
	})
}

// 导出word
export function exportOaSendDocumentsWord(data){
	return request({
	  url: '/bpm/oa-send-documents/export-word',
	  method: 'get',
	  data
	})
}

// 获取当前应填写的文号
export function getDocumentNumber(data){
	return request({
		url: '/bpm/oa-send-documents/getDocumentNumber',
		method: 'get',
		data
	})
}
